<h1>Listing payment_types</h1>

<table>
  <tr>
    <th>Payment type</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @payment_types.each do |payment_type| %>
  <tr>
    <td><%= payment_type.payment_type %></td>
    <td><%= link_to 'Show', payment_type %></td>
    <td><%= link_to 'Edit', edit_payment_type_path(payment_type) %></td>
    <td><%= link_to 'Destroy', payment_type, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Payment type', new_payment_type_path %>
